<?php
$this->pageTitle = 'Manage Users';
$this->menu = array(
    array('label' => Yii::t('app', 'Manage Users'), 'url' => array($url)),
);
?>

<h3 style=" float: left;"><?php echo (!empty($userProfile))? 'View Review '.$userProfile->first_name:'View Review'; ?></h3> <h3 style="float:right;"><?php echo 'Rate: Postive(' . $trainerratePositive . ') And Negative(' . $trainerrateNigative . ') ' ?></h3>

<script type="text/javascript">
    function ChangeStatus(id, status) {
        $.ajax({
            url: "<?php echo $statuschangeurl; ?>",
            type: "post",
            data: "id=" + id + "&status=" + status,
            dataType: "html",
            success: function(msg) {
                $('#trainer-profile-review-grid').yiiGridView.update('trainer-profile-review-grid');
            }
        });

    }

</script><?php
$this->widget('zii.widgets.grid.CGridView', array(
    'id' => 'trainer-profile-review-grid',
    'dataProvider' => $model,
     'summaryText' => '',
    'columns' => array(
        'reviews_text',
        'create_time',
        array(
            'name' => 'status',
            'type' => 'raw',
            'value' => 'changeStatusIngridView($data)',
            'filter' => array('0' => Yii::t('app', 'Inactive'), '1' => Yii::t('app', 'Active')),
        ),
    ),
));
?>